package com.lzm.ydpt.mvp.modelimpl;

import com.byt.framlib.basemvp.basebean.BaseResponseBean;
import com.byt.framlib.basemvp.basebean.ListPageBean;
import com.byt.framlib.basemvp.boby.FormBodys;
import com.lzm.ydpt.entity.mall.ProductBean;
import com.lzm.ydpt.entity.mall.ShopGoods;
import com.lzm.ydpt.mvp.api.APIManager;
import com.lzm.ydpt.mvp.contract.MallCartContract;

import io.reactivex.Observable;

/**
 * 类名称：XhXnHelpModelImpl
 * 类描述：模型实现
 */
public class MallCartModelImpl implements MallCartContract.Model {

    @Override
    public Observable<BaseResponseBean<ListPageBean<ShopGoods>>> onProductCartList(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onProductCartList(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Object>> onDeteleProductCart(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onDeteleProductCart(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<Object>> onShoppingCart(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onShoppingCart(formBodys);
    }

    @Override
    public Observable<BaseResponseBean<ListPageBean<ProductBean>>> onShopGuessLike(FormBodys formBodys) {
        return APIManager.getInstance().getAPIService().onShopGuessLike(formBodys);
    }
}